package com.hht.study.proxy.dynamic.cglib;

import net.sf.cglib.proxy.Enhancer;

/**
 * @author hht
 * @date 2022/3/6
 */
public class CglibProxyFactory {

    public static Object getProxy(Class clazz){
        return Enhancer.create(clazz,new MyMethodInterceptor());
    }
}
